package marina;

import java.util.Scanner;

public class J10Return {
	// return문을 사용하는 메서드
	public static void main(String[] args) {
		int a,b;
		int sum,minus,multiple;
		double divide;
		
		Scanner sc = new Scanner(System.in);
		System.out.println("a,b값을 입력하세요.");
		a = sc.nextInt();
		b = sc.nextInt();
		sc.close();
		
		sum = getSum(a,b);
		minus = getMinus(a,b);
		multiple = getMultiple(a,b);
		divide = getDivide(a,b);
		
		System.out.println("a = "+a);
		System.out.println("b = "+b);
		System.out.println("a + b = "+sum);
		System.out.println("a - b = "+minus);
		System.out.println("a * b = "+multiple);
		System.out.println("a / b = "+divide);
	} //main
	public static int getSum(int a, int b){
		return (a + b);
	}
	public static int getMinus(int a, int b){
		return (a - b);
	}
	public static int getMultiple(int a, int b){
		return (a * b);
	}
	public static double getDivide(int a, int b){
		return (a / b);
	}
}
